package com.wingscode.modules.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.common.entity.ChatObjectEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 聊天对象
 *
 * @author yan
 */
@Mapper
public interface ChatObjectDao extends BaseMapper<ChatObjectEntity> {
    IPage<ChatObjectEntity> getObject(IPage<ChatObjectEntity> page, @Param("agentId") Integer agentId, @Param("userId") Integer userId, @Param("state") Integer state);

    IPage<ChatObjectEntity> queryObject(IPage<ChatObjectEntity> page, @Param("type") Integer type, @Param("agentName") String agentName);
}
